package com.zkx.mvp.api;

import com.zkx.mvp.model.SessionRequest;
import com.zkx.mvp.model.SessionResult;
import com.zkx.mvp.model.base.HttpResult;
import com.zkx.mvp.model.base.HttpResultList;
import com.zkx.mvp.model.test.TestRequest;
import com.zkx.mvp.model.test.TestResponse;

import retrofit2.http.Body;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Author：zhangkx on 2017/6/16 16:23
 * Email：zkx9025@163.com
 */

public interface HttpApiService {
//    @POST("/api/mc/login")
    @POST("/Api/AppFiftyToneGraph/videoLink")
    Observable<HttpResultList<SessionResult>> getSession(@Body SessionRequest request);

//    @POST("/he/freeweather?city=beijing&appkey=32d69686cb92cfac35d227065f0d4e85")
    @POST("/he/freeweather")
    Observable<HttpResult<TestResponse>> getWeather(@Body TestRequest testRequest);
}
